package com.site.wisdom_construction.service.userAuthorityModule;

import com.site.wisdom_construction.dao.userAuthorityModule.UserRoleDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/3/7
 * @Description
 */
@Service
public class UserRoleService implements UserRoleDao {
    @Autowired
    private UserRoleDao userRoleDao;

    @Override
    public int insertUserRole(Map map) {
        return userRoleDao.insertUserRole(map);
    }

    @Override
    public int deleteUserRole(Map map) {
        return userRoleDao.deleteUserRole(map);
    }

    @Override
    public List<Integer> findUserRoleByUserId(Map map) {
        return userRoleDao.findUserRoleByUserId(map);
    }
}
